Ext.define('App.datacollection.collectionschedule.view.CollectionScheduleList', {
    extend: 'Extend.grid.CrudGridPanel',
    alias: 'widget.CollectionScheduleList',
    requires: ['App.datacollection.collectionschedule.model.CollectionScheduleViewModel'],
    viewModel: 'CollectionScheduleViewModel',
    bind: {
        store: '{Query}',
        columns: '{columns}',
        search: '{search}'
    },
    config: {
        tbar: {
            quickCreate: {
                hidden: false
            }
        }
    },
    editor: {
        formClazz: 'App.datacollection.collectionschedule.view.CollectionScheduleEditor',
        save: 'datacollection/collectionschedule/save',
        get: 'datacollection/collectionschedule/get_by_id',
        del: 'datacollection/collectionschedule/deletes',
        model: 'App.datacollection.collectionschedule.model.CollectionScheduleModel'
    },
    addHandler: function () {
        this.editHandler(null, false, {
            project: {
                id: this.projectId
            },
            repeatMode: '每周',
            disabled: false
        });
    }
});